package cn.lijiancn01.demo.business.menu.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.List;

@Data
public class MenuBO {
    private String label;
    private String url;             //菜单目录时有值
    private String redirect;
    private List<MenuBO> children;  //菜单目录或菜单组时有值
    private MenuSchemaBO schema;    //菜单叶子节点时有值
    private Object schemaApi;       //菜单叶子节点时有值，如：get:/pages/crud-new.json
    @JsonIgnore
    private String type;            //group 组, dir 目录, node 叶子节点
    @JsonIgnore
    private String id;
}
